package com.personal.modules.sys.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.personal.modules.sys.dao.SysUserDao;
import com.personal.modules.sys.entity.SysUserEntity;
import com.personal.modules.sys.service.TSysUserService;



@Service("tSysUserService")
public class TSysUserServiceImpl implements TSysUserService {
	@Autowired
	private SysUserDao tSysUserDao;
	
	@Override
	public SysUserEntity queryObject(Long userId){
		return tSysUserDao.queryObject(userId);
	}
	
	@Override
	public List<SysUserEntity> queryList(Map<String, Object> map){
		return tSysUserDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tSysUserDao.queryTotal(map);
	}
	
	@Override
	public void save(SysUserEntity tSysUser){
		tSysUserDao.save(tSysUser);
	}
	
	@Override
	public void update(SysUserEntity tSysUser){
		tSysUserDao.update(tSysUser);
	}
	
	@Override
	public void delete(Long userId){
		tSysUserDao.delete(userId);
	}
	
	@Override
	public void deleteBatch(Long[] userIds){
		tSysUserDao.deleteBatch(userIds);
	}
	
}
